package com.example.star.api_service;

import com.example.star.entity.Perimeter;
import com.example.star.entity.Star;
import com.example.star.entity.User;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface ApiPerimeter {
    @POST("perimeters")
    Call<Perimeter> savePerimeter(@Body Perimeter perimeter);
    @GET("perimeters")
    Call<List<Perimeter>> getPerimeters();
    @GET("users_by_username")
    Call<User> getUserByUsername(@Query("username") String username);

}
